package com.dd.cloud.user.service.pres;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dd.cloud.user.entity.pres.PresHistory;
import com.dd.cloud.user.req.pres.PresHistoryCreateReq;
import com.dd.cloud.user.req.pres.PresHistoryPageReq;
import com.dd.cloud.user.req.pres.PresHistoryUpdateReq;
import com.dd.cloud.user.res.pres.PresHistoryDetailRes;
import com.dd.cloud.user.res.pres.PresHistoryPageRes;

/**
 * @author Lx
 * @version 1.0
 */
public interface IPresHistoryService extends IService<PresHistory> {
    /**
     * 修改处方历史草稿
     *
     * @param req
     */
    void createPresHistory(PresHistoryCreateReq req);

    /**
     * 修改处方历史草稿
     *
     * @param req
     */
    void updatePresHistory(PresHistoryUpdateReq req);

    /**
     * 修改处方历史草稿状态
     *
     * @param id
     * @param status
     */
    void updatePresHistoryStatus(Integer id, Integer status);

    /**
     * 查询处方历史草稿列表 分页
     *
     * @param req
     * @return
     */
    IPage<PresHistoryPageRes> queryPresHistoryPage(PresHistoryPageReq req);

    /**
     * 查询处方历史草稿详情
     *
     * @param id
     * @return
     */
    PresHistoryDetailRes queryPresHistoryDetail(Integer id);
}
